package com.yang.moyu.meta.system.service.impl;

import com.yang.moyu.meta.system.domain.SysDepartment;
import com.yang.moyu.meta.system.mapper.SysDepartmentMapper;
import com.yang.moyu.meta.system.service.SysDepartmentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * Create by 10296 on 2021/12/16
 *
 * @Description:
 */
@Service
public class SysDepartmentServiceImpl implements SysDepartmentService {


    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SysDepartmentMapper sysDepartmentMapper;


    @Override
    public SysDepartment getDepartmentById(String id) {
        return sysDepartmentMapper.getSysDepartmentById(id);
    }

    @Override
    public boolean saveSysDepartment(SysDepartment sysDepartment) throws Exception {
        int i = sysDepartmentMapper.saveSysDepartment(sysDepartment);
        return false;
    }

    @Override
    public boolean updateSysDepartment(SysDepartment sysDepartment) throws Exception {


        int i = sysDepartmentMapper.updateSysDepartment(new HashMap<>());
        return false;
    }

    @Override
    public boolean deleteSysDepartment(Long id) throws Exception {

        return false;
    }
}
